package kit.edu.lego.gruppe3;

import lejos.nxt.*;

public class MenueButtonListener implements ButtonListener
{

	@Override
	public void buttonPressed(Button b)
	{
		
	}

	@Override
	public void buttonReleased(Button b)
	{
		switch (b.getId())
		{
		case Button.ID_ENTER: LegoMain.startSolver(StartMenue.getIndex()); break;
		case Button.ID_ESCAPE: StartMenue.exit(); return; 
		case Button.ID_LEFT: StartMenue.setIndex(-1); break;
		case Button.ID_RIGHT: StartMenue.setIndex(1) ; break;
		}
		
	}

}
